EMT Practice Test

1. Question Content...


Question List

Question1: What information can the lspci command display about the system hardware? (Choose THREE correct answers.)

Question2: What of the following can be done by the command ifconfig? (Choose TWO correct answers.)

Question3: In Bash, inserting 1>&2 after a command redirects

Question4: Which of the following are init systems used within Linux systems? (Choose THREE correct answers.)

Question5: SIMULATION
Which environment variable should be set in order to change the time zone for the commands run from within the environment variable's scope? (Specify the variable name only.)

Question6: Which of the following steps prevents a user from obtaining an interactive login session?

Question7: Each entry in a crontab must end with what character?

Question8: SIMULATION
Which option in the /etc/ntp.conf file specifies an external NTP source to be queried for time information?
(Specify ONLY the option without any values or parameters.)

Question9: Which file should be edited to select the network locations from which Debian installation package files are loaded?

Question10: Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)

Question11: Which of the following commands is used to rotate, compress, and mail system logs?

Question12: SIMULATION
Which world-writable directory should be placed on a separate partition in order to prevent users from being able to fill up the / filesystem? (Specify the full path to the directory.)

Question13: What is the purpose of the iconv command?

Question14: What is the purpose of the nsswitch.conf file?

Question15: Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?

Question16: Which of the following keywords can be used in the file /etc/resolv.conf? (Choose TWO correct answers.)

Question17: Which of the following fields are available in both the global /etc/crontab file as well as in user-specific crontab files? (Select TWO correct answers)

Question18: After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?

Question19: Which approach will provide a listing of the contents in a tar archive?

Question20: Which of the following are valid stream redirection operators within Bash? (Choose THREE correct answers.)

Question21: Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target?

Question22: Which grep command will print only the lines that do not end with a / in the file foo?

Question23: Which utility would be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem?

Question24: Which of the following commands lists all defined variables and functions within Bash?

Question25: Which of the following commands can be used to create a USB storage media from a disk image?

Question26: Which of the following commands puts the output of the command date into the shell variable mydate?

Question27: Which of the following tasks can be accomplished using the command date? (Choose TWO correct answers.)

Question28: Which of the following IPv4 networks are reserved by IANA for private address assignment and private routing? (Choose THREE correct answers.)

Question29: Which of the following may occur as a consequence of using the command ifconfig? (Choose THREE correct answers.)

Question30: Which of the following commands can be used to download the RPM package kernel without installing it?

Question31: SIMULATION
In which directory must definition files be placed to add additional repositories to yum?

Question32: What is true regarding the command sendmail?

Question33: Which configuration file would be edited to change the default options for outbound SSH sessions?

Question34: SUMULATION
Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)

Question35: Which of the following command sets the Bash variable named TEST with the content FOO?

Question36: What do the permissions -rwSr-xr-x mean for a binary file when it is executed as a command?

Question37: Why is the correct configuration of a system's time zone important?

Question38: What is a purpose of an SSH host key?

Question39: Which RPM command will output the name of the package which supplied the file /etc/exports?

Question40: SIMULATION
Which command will disable swapping on a device? (Specify ONLY the command without any path or parameters.)

Question41: SIMULATION
Which file contains a set of services and hosts that will be allowed to connect to the server by going through a TCP Wrapper program such as tcpd? (Specify the full name of the file, including path.)

Question42: Which of the following commands can be used to display the local routing table? (Choose TWO correct answers.)

Question43: Which of the following sequences in the vi editor saves the opened document and exits the editor?
(Choose TWO correct answers.)

Question44: SIMULATION
What is the lowest numbered unprivileged TCP port? (Specify the number in digits only.)

Question45: When using rpm --verify to check files created during the installation of RPM packages, which of the following information is taken into consideration? (Choose THREE correct answers.)

Question46: Which of the following are commonly used Mail Transfer Agent (MTA) applications? (Choose THREE correct answers.)

Question47: What is the default nice level when a process is started using the nice command?

Question48: SIMULATION
Which command is used to set the hostname of the local system? (Specify ONLY the command without any path or parameters.)

Question49: What is true about the file /etc/localtime?

Question50: What command will generate a list of user names from /etc/passwd along with their login shell?

Question51: Which of the following command sequences overwrites the file foobar.txt?

Question52: When trying to unmount a device it is reported as being busy. Which of the following commands could be used to determine which process is causing this?

Question53: Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?

Question54: SIMULATION
Which command can be used to investigate the properties for a particular window in X by clicking that window? (Specify ONLY the command without any path or parameters.)

Question55: In order to display all currently mounted filesystems, which of the following commands could be used?
(Choose TWO correct answers.)

Question56: Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose TWO correct answers.)

Question57: Which of the following commands will set the variable text to olaf is home? (Choose two)

Question58: Which command chain will count the number of regular files with the name of foo.txt within /home?

Question59: When the command echo $ outputs 1, which of the following statements is true?

Question60: Which of the following commands will output all of the lines with the name Fred in upper or lower case but not the word red from the file data_file? (Choose two)

Question61: Which of the following commands can remove a user from a group?

Question62: What is NOT contained in the locale setting of the operating system?

Question63: Which of the following SQL queries counts the number of occurrences for each value of the field order_type in the table orders?

Question64: Which of the following commands can be used to display the inode number of a given file?

Question65: Which SysV init configuration file should be modified to disable the ctrl-alt-delete key combination?

Question66: What is the command to delete the default gateway from the system IP routing table? (Choose TWO correct answers.)

Question67: SIMULATION
Which Debian package management tool asks the configuration questions for a specific already installed package just as if the package were being installed for the first time? (Specify ONLY the command without any path or parameters.)

Question68: From a Bash shell, which of the following commands directly executes the instruction from the file /usr/ local/bin/runme.sh without starting a subshell? (Please select TWO answers.)

Question69: The script, script.sh, consists of the following lines:
#!/bin/bash
echo $2 $1
Which output will appear if the command, ./script.sh test1 test2, is entered?

Question70: Which of the following keywords can be used in the file /etc/nsswitch.conf to specify a source for host name lookups? (Choose TWO correct answers.)

Question71: Which of the following programs uses the hosts.allow file to perform its main task of checking for access control restrictions to system services?

Question72: What is the purpose of a screen reader?

Question73: Which of the following statements is correct when talking about /proc/?

Question74: SIMULATION
Which command, depending on its options, can display the open network connections, the routing tables, as well as network interface statistics. (Specify ONLY the command without any path or parameters.)

Question75: SIMULATION
What word is missing from the following SQL statement?
__________ count(*) from tablename;
(Please specify the missing word using lower-case letters only.)

Question76: Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?

Question77: SIMULATION
Which command is used to sync the hardware clock to the system clock? (Specify ONLY the command without any path or parameters.)

Question78: Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached?

Question79: The X11 configuration file xorg.conf is grouped into sections. How is the content of the section SectionName associated with that section?

Question80: Which of the following shell redirections will write standard output and standard error output to a file named filename?

Question81: Which type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters?

Question82: Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard?

Question83: Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt?

Question84: SIMULATION
What two character sequence is present at the beginning of an interpreted script? (Please specify the TWO correct characters only)

Question85: Which shell command is used to continue background execution of a suspended command?

Question86: Which of the following is true about IPv6?

Question87: Which of the following commands can be used to limit the amount of memory a user may use?

Question88: In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?

Question89: Which function key is used to start Safe Mode in Windows NT?

Question90: What is true regarding TCP port 23?

Question91: SIMULATION
Which umask value will result in the default access permissions of 600 (rw-------) for files and 700 (rwx------) for directories? (Specify only the numerical umask value.)

Question92: Which of the following commands preloads and manages keys that are used for automatic authentication while logging in to other machines using SSH?

Question93: SIMULATION
Which file specifies the user accounts that can NOT submit jobs via at or batch? (Provide the full path and filename)

Question94: Which of the following information is stored within the BIOS? (Choose TWO correct answers.)

Question95: SIMULATION
What word is missing from the following SQL statement?
insert into tablename ________(909, 'text');
(Please specify the missing word using lower-case letters only.)

Question96: What is the purpose of the file /etc/profile?

Question97: Which of the following commands will create an archive file, named backup.tar, containing all the files from the directory /home?

Question98: SIMULATION
Which command is used in a Linux environment to create a new directory? (Specify ONLY the command without any path or parameters.)

Question99: When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?

Question100: Which of the following is observed and corrected by a NTP client?

Question101: Which of the following commands updates the linker cache of shared libraries?

Question102: Which of the following files assigns a user to its primary group?

Question103: Which of the following commands connects to the remote host example.com which has OpenSSH listening on TCP port 2222? (Choose TWO correct answers.)

Question104: Which commands can be used to change a user's account aging information? (Choose THREE correct answers.)

Question105: When running the command
sed -e "s/a/b/" /tmp/file >/tmp/file
While /tmp/file contains data, why is /tmp/file empty afterwards?

Question106: What is the difference between the commands test -e path and test -f path?

Question107: Which of the following fields can be found in the /etc/group file? (Choose THREE correct answers.)

Question108: Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.)

Question109: Which character, added to the end of a command, runs that command in the background as a child process of the current shell?

Question110: After successfully creating a hard link called bar to the ordinary file foo, foo is deleted from the filesystem.
Which of the following describes the resulting situation?

Question111: To prevent a specific user from scheduling tasks with at, what should the administrator do?

Question112: Which of the following commands can be used to locate programs and their corresponding man pages and configuration files?

Question113: Which of the following files, located in the user home directory, is used to store the Bash history?

Question114: What does the exit status 0 indicate about a process?

Question115: SIMULATION
In which file, if present, must all users be listed that are allowed to use the cron scheduling system?
(Specify the full name of the file, including path.)

Question116: SIMULATION
How many IP-addresses can be used for unique hosts inside the IPv4 subnet 192.168.2.128/28? (Specify the number only without any additional information.)

Question117: What is the difference between the i and a commands of the vi editor?

Question118: What is true regarding the file ~/.forward?

Question119: Which variable defines the directories in which a Bash shell searches for executable commands?

Question120: What can the Logical Volume Manager (LVM) be used for? (Choose THREE correct answers.)

Question121: What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?

Question122: Which of the following tools used for DNS debugging, reports not only the response from the name server but also details about the query?

Question123: Given the following routing table:

How would an outgoing packet to the destination 192.168.2.150 be handled?

Question124: When the command echo $$ outputs 12942, what is the meaning of 12942?

Question125: Which of the following crontab entries will execute myscript at 30 minutes past every hour on Sundays?

Question126: Which of the following Linux filesystems preallocates a fixed number of inodes at the filesystem's make/ creation time and does NOT generate them as needed? (Choose TWO correct answers.)

Question127: Which file inside the CUPS configuration directory contains the definition of the printers?

Question128: Which of the following commands will print the last 10 lines of a text file to the standard output?

Question129: Which of the following commands redirects the output of cmd to the file foo.txt, in which an existing file is overwritten?

Question130: Which of the following is the device file name for the second partition on the only SCSI drive?

Question131: Which of the following words is used to restrict the records that are returned from a SELECT SQL query based on a supplied criteria for the values in the records?

Question132: SIMULATION
Which command is used to add an empty group to the system? (Specify ONLY the command without any path or parameters.)

Question133: On a regular users workstation the route command takes a long time before printing out the routing table.
Which of the following errors does that indicate?

Question134: SIMULATION
By default, the contents of which directory will be copied to a new user's home directory when the account is created by passing the -m option to the user add command? (Specify the full path to the directory.)

Question135: SIMULATION
On a Linux system with shadow passwords enabled, which file in the file system contains the password hashes of all local users? (Specify the full name of the file, including path.)

Question136: Which of the following pieces of information of an existing file is changed when a hard link pointing to that file is created?

Question137: Which of the following commands set the sticky bit for the directory /tmp? (Choose TWO correct answers.)

Question138: Which of the following is a legacy program provided by CUPS for sending files to the printer queues on the command line?

Question139: Which of the following commands can be used to extract content from a tar file?

Question140: Which of the following commands lists all currently installed packages when using RPM package management?

Question141: Which of the following options is used in a GRUB Legacy configuration file to define the amount of time that the GRUB menu will be shown to the user?

Question142: Which of the following lines are valid in the file /etc/hosts? (Choose TWO correct answers.)

Question143: SIMULATION
What command displays all aliases defined in the current shell? (Specify the command without any path information)

Question144: Which of the following commands will change the quota for a specific user?

Question145: Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH?

Question146: SIMULATION
Which directory holds the files that configure the xinetd service when using several configuration files instead of an integrated configuration file? (Specify the full path to the directory.)

Question147: SIMULATION
Which port is the default server port for the HTTPS protocol? (Specify the port number using digits.)

Question148: Which of the following environment variables overrides or extends the list of directories holding shared libraries?

Question149: What is the purpose of the Bash built-in export command?

Question150: SIMULATION
Which command, available with all MTAs, is used to list the contents of the MTA's mail queue? (Specify ONLY the command without any path or parameters.)

Question151: How is a display manager started?

Question152: Creating a hard link to an ordinary file returns an error. What could be the reason for this?

Question153: Which of the following are tasks handled by a display manager like XDM or KDM? (Choose TWO correct answers.)

Question154: SIMULATION
After configuring printing on a Linux server, the administrator sends a test file to one of the printers and it fails to print. What command can be used to display the status of the printer's queue? (Specify ONLY the command without any path or parameters.)

Question155: When removing a package, which of the following dpkg options will completely remove the files including configuration files?

Question156: Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it?

Question157: Which of the following is correct when talking about mount points?

Question158: Which command makes the shell variable named VARIABLE visible to subshells?

Question159: After moving data to a new filesystem, how can the former path of the data be kept intact in order to avoid reconfiguration of existing applications? (Choose TWO correct answers.)

Question160: Which of the following commands will write a message to the terminals of all logged in users?

Question161: Which command will display the last line of the file foo.txt?

Question162: Which of the following is a valid IPv6 address?

Question163: SIMULATION Please specify the top directory containing the configuration files for the CUPS printing system. (Specify the full path to the directory.)

Question164: What is the first program that is usually started, at boot time, by the Linux kernel when using SysV init?

Question165: Which character starts a comment line in a shell script file?

Question166: Which of the following are syslog facilities? (Choose TWO correct answers.)

Question167: Which of the following commands prints all files and directories within the /tmp directory or its subdirectories which are also owned by the user root? (Choose TWO correct answers.)

Question168: After issuing:
function myfunction { echo $1 $2 ; }
in Bash, which output does:
myfunction A B C
Produce?

Question169: Which command can be used to delete a group from a Linux system?

Question170: Regarding the command:
nice -5 /usr/bin/prog
Which of the following statements is correct?

Question171: How can the normal output of a command be written to a file while discarding the error output?

Question172: SIMULATION
Which option to the yum command will update the entire system? (Specify ONLY the option name without any additional parameters.)

Question173: Which of the following file permissions belong to a symbolic link?

Question174: SIMULATION
After adding a new email alias to the configuration, which command must be run in order to ensure the MTA knows about it? (Specify the command without any path but including all required parameters.)

Question175: SIMULATION
Which file lists which users can execute commands using sudo? (Specify the full name of the file, including path.)

Question176: Which of the following find commands will print out a list of files owned by root and with the SUID bit set in / usr?

Question177: Which of the following commands will help identify a broken router between the local and the remote machine?

Question178: SIMULATION
Which signal is missing from the following command that is commonly used to instruct a daemon to reinitialize itself, including reading configuration files?
killall -s _______ daemon

Question179: SIMULATION
What is the name of the simple graphical login manager that comes with a vanilla X11 installation?
(Specify ONLY the command without any path or parameters.)

Question180: SIMULATION
With X11 forwarding in ssh, what environment variable is automatically set in the remote host shell that is not set when X11 forwarding is not enabled? (Specify only the environment variable without any additional commands or values.)

Question181: A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?

Question182: Which of the following details is NOT provided in any output from the netstat utility?

Question183: SIMULATION
The system's timezone may be set by linking /etc/localtime to an appropriate file in which directory?
(Provide the full path to the directory, without any country information)

Question184: What happens after issuing the command vi without any additional parameters?

Question185: What is the effect of the egrep command when the -v option is used?

Question186: In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories?

Question187: Which command is used to set restrictions on the size of a core file that is created for a user when a program crashes?

Question188: Which of the following commands shows the definition of a given shell command?

Question189: Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?

Question190: Which of the following parameters are used for journalctl to limit the time frame of the output? (Choose TWO correct answers.)

Question191: SIMULATION
Which keyword must be listed in the hosts option of the Name Service Switch configuration file in order to make host lookups consult the /etc/hosts file?

Question192: Which of the following commands determines the type of a file by using a definition database file which contains information about all common file types?

Question193: What is the default action of the split command on an input file?

Question194: What is true regarding the command userdel --force --remove bob? (Choose TWO correct answers.)

Question195: SIMULATION
Which Bash environment variable defines in which file the user history is stored when exiting a Bash process? (Specify ONLY the variable name.)

Question196: SIMULATION
What is the name of the main configuration file for GNU GRUB? (Specify the file name only without any path.)

Question197: SIMULATION
Which command is used to create and initialize the files used to store quota information? (Specify ONLY the command without any path or parameters.)

Question198: Which of the following commands changes the ownership of file.txt to the user dan and the group staff?

Question199: Instead of supplying an explicit device in /etc/fstab for mounting, what other options may be used to identify the intended partition? (Choose TWO correct answers.)

Question200: What is the purpose of the command mailq?

Question201: Which of the following commands shows the current color depth of the X Server?

Question202: Which of the following commands can be used to determine how long the system has been running?
(Choose TWO correct answers.)

Question203: SIMULATION
Which command will display messages from the kernel that were output during the normal boot sequence?

Question204: What is true regarding a default route?

Question205: SIMULATION
Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)

Question206: Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.)

Question207: What does the command mount -a do?

Question208: Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?

Question209: SIMULATION
What is the default name of the configuration file for the Xorg X11 server? (Specify the file name only without any path.)

Question210: Which of the following commands displays the contents of a gzip compressed tar archive?

Question211: During a system boot cycle, what program is executed after the BIOS completes its tasks?

Question212: Which character in the password field of /etc/passwd is used to indicate that the encrypted password is stored in /etc/shadow?

Question213: Which file used by XDM specifies the default wallpaper?

Question214: What entry can be added to the syslog.conf file to have all syslog messages generated by a system displayed on console 12?

Question215: What output will the following command sequence produce?
echo '1 2 3 4 5 6' | while read a b c; do
echo result: $c $b $a;
done

Question216: In the vi editor, which of the following commands will copy the current line into the vi buffer?

Question217: Which of the following are requirements in order to run a shell script like a regular command from anywhere in the filesystem? (Choose THREE correct answers.)

Question218: SIMULATION
The presence of what file will temporarily prevent all users except root from logging into the system?
(Specify the full name of the file, including path.)

Question219: Which of the following commands is used to update the list of available packages when using dpkg based package management?

Question220: Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?

Question221: What output will the command seq 10 produce?

Question222: What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.)

Question223: Which of the following kernel parameters instructs the kernel to suppress most boot messages?

Question224: Where are user specific crontabs stored?

Question225: SIMULATION
What argument to the -type option of find will match files that are symbolic links? (Specify only the argument and no other options or words.)

Question226: What output will the following command produce?
seq 1 5 20

Question227: What is the output of the following command sequence?
for token in a b c; do
echo -n "$token ";
done

Question228: What is the correct command to extract the contents of the archive file download.bz2?

Question229: Which of the following commands lists the dependencies of a given dpkg package?

Question230: SIMULATION
In an xinetd configuration file, which attribute specifies the network address that will be used to provide the service?

Question231: The output of the program date should be saved in the variable actdat. What is the correct statement?

Question232: How can the existing environment variable FOOBAR be suppressed for the execution of the script./ myscript only?

Question233: When given the following command line.
echo "foo bar" | tee bar | cat
Which of the following output is created?

Question234: In compliance with the FHS, in which of the directories are man pages found?